package org.alex.samples.dao;

import java.util.ArrayList;
import java.util.List;

import org.alex.samples.model.ExamTestType;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Transactional
public class ExamTestTypeDAOImpl extends BaseHibernateDAO<ExamTestType> implements IExamTestTypeDAO {

	@Override
	public ExamTestType findById(Integer id) {
		ExamTestType examTestType = this.get(id);
		return examTestType;
	}

	@Override
	public List<ExamTestType> findAllExamTestType() {
		List<ExamTestType> examTestTypeList = new ArrayList<>();
		String hql = " FROM ExamTestType ";
		examTestTypeList = queryForList(hql, null);
		return examTestTypeList;
	}
	
	
}
